Drop gtk_window_set_use_subsurface
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 Aug 2018 03:06:48 +0000 (03:06 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 Aug 2018 03:24:59 +0000 (23:24 -0400)
This is no longer used.

gtk/gtkwindow.c
gtk/gtkwindowprivate.h

index f65a7b98e8d97e388e7e1f35451f639dea8a858e..48620575d77fd3ae46bb8a6691b7466ab99326ae 100644 (file)
@@ -272,7 +272,6 @@ typedef struct
   guint    fullscreen                : 1;
   guint    tiled                     : 1;
 
-  guint    use_subsurface            : 1;
   guint    hide_on_close             : 1;
   guint    in_emit_close_request     : 1;
 
@@ -3441,11 +3440,10 @@ gtk_window_unset_transient_for  (GtkWindow *window)
  *
  * Passing %NULL for @parent unsets the current transient window.
  *
- * On Wayland, this function can also be used to attach a new
+ * This function can also be used to attach a new
  * #GTK_WINDOW_POPUP to a #GTK_WINDOW_TOPLEVEL parent already mapped
- * on screen so that the #GTK_WINDOW_POPUP will be created as a
- * subsurface-based window #GDK_SURFACE_SUBSURFACE which can be
- * positioned at will relatively to the #GTK_WINDOW_TOPLEVEL surface.
+ * on screen so that the #GTK_WINDOW_POPUP will be
+ * positioned relative to the #GTK_WINDOW_TOPLEVEL surface.
  *
  * On Windows, this function puts the child window on top of the parent,
  * much as the window manager would have done on X.
@@ -6847,19 +6845,7 @@ gtk_window_realize (GtkWidget *widget)
                                              allocation.height);
           break;
         case GTK_WINDOW_POPUP:
-#ifdef GDK_WINDOWING_WAYLAND
-          if (priv->use_subsurface &&
-              GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
-            {
-              surface = gdk_wayland_surface_new_subsurface (gtk_widget_get_display (widget),
-                                                           &allocation);
-            }
-          else
-#endif
-            {
-              surface = gdk_surface_new_popup (gtk_widget_get_display (widget),
-                                              &allocation);
-            }
+          surface = gdk_surface_new_popup (gtk_widget_get_display (widget), &allocation);
           break;
         default:
           g_error (G_STRLOC": Unknown window type %d!", priv->type);
@@ -10925,18 +10911,6 @@ gtk_window_enable_debugging (GtkWindow *window,
   return TRUE;
 }
 
-void
-gtk_window_set_use_subsurface (GtkWindow *window,
-                               gboolean   use_subsurface)
-{
-  GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
-
-  g_return_if_fail (GTK_IS_WINDOW (window));
-  g_return_if_fail (!_gtk_widget_get_realized (GTK_WIDGET (window)));
-
-  priv->use_subsurface = use_subsurface;
-}
-
 void
 gtk_window_set_hardcoded_surface (GtkWindow *window,
                                  GdkSurface *surface)
index 031e90c170cbf0ce334daa632670e6851df217ec..d4fad9346c68684a2dd284630bff63400349e3c3 100644 (file)
@@ -116,8 +116,6 @@ gboolean    _gtk_window_is_popover_widget  (GtkWindow *window,
 GdkTexture *     gtk_window_get_icon_for_size (GtkWindow *window,
                                               int        size);
 
-void       gtk_window_set_use_subsurface (GtkWindow *window,
-                                          gboolean   use_subsurface);
 void       gtk_window_set_hardcoded_surface (GtkWindow *window,
                                             GdkSurface *surface);